<?php

namespace app\common\validate;

use think\Validate;

class Strategy extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'buy_time' => 'require|date',
        'buy_price' => 'require|number|float',
        'num'       => 'require|number'
    ];

    /**
     * 字段描述
     */
    protected $field = [
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'edit' => ['buy_time', 'buy_price'],
    ];

}
